package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.CarBean;

import java.util.List;

/**
 * Created by ky on 2017/12/29.
 */

public class MessageCarApt extends CommonAdapter<CarBean.RowsBean> {
    private final List<CarBean.RowsBean> mList;
    private Context context;

    public MessageCarApt(Context context, List<CarBean.RowsBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
        this.mList = mList;
    }

    @Override
    public void convert(ViewHolder holder, CarBean.RowsBean item, final int position) {
        TextView tv_car = holder.getView(R.id.tv_car);
        tv_car.setText(mList.get(position).getPlateNo());


    }

}